<template>
  <div style="width=100%;">
    <h2 style="margin:0px;">{{title[this.$store.state.diaryFormDate.type]}}</h2>
    <diaryForm></diaryForm>
    <addItemDialog></addItemDialog>
  </div>
</template>
<script>
import DiaryForm from '@/views/DiaryEdit/DiaryForm'
import AddItemDialog from '@/views/DiaryEdit/AddItemDialog'

export default {
  name: 'diary-edit-view',
  components: {
    DiaryForm,
    AddItemDialog
  },
  data () {
    return {
      title: {
        edit: '编辑日报',
        add: '今日日报',
        refill: '补写日报'
      }
    }
  },
  methods: {
  }
}
</script>
</style>
